package cn.itsource.ymcc.vo;

import cn.itsource.ymcc.jsr.Phone;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

@Data
public class UserRegisterVo {
    @NotBlank(message = "手机号不能为空")
    @Phone
    private String mobile;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "短信验证码不能为空")
    private String smsCode;
    @Range(min = 0,max = 1,message = "参数请求异常")
    private Integer regChannel;
}
